<?php
$year = $_REQUEST[year];
mysql_connect("localhost","root","");
mysql_select_db("test");
 
$q=mysql_query("SELECT * FROM people WHERE birthyear>'".$year."'");
while($e=mysql_fetch_assoc($q))
        $output[]=$e;
 
print(json_encode($output));
 
mysql_close();
?>